package com.max.design.create.factoryMethod;

/**Test */
public class Test 
{

    public static void main(String[] args) 
    {
        IWorkFactory studentWorkFactory = new StudentWorkFactory();
        studentWorkFactory.getWork().doWork();
        
        IWorkFactory teacherWorkFactory = new TeacherWorkFactory();
        teacherWorkFactory.getWork().doWork();
    }

}